//
//  DFIvar.h
//  微商社区
//
//  Created by nahuo on 15/1/29.
//  Copyright (c) 2015年 nahuo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <objc/runtime.h>



@interface DFIvar : NSObject

/** 成员名 */
@property (nonatomic, readonly) NSString *name;

/** 成员变量 */
@property (nonatomic, assign) Ivar ivar;
/** 成员属性名 */
@property (nonatomic, readonly) NSString *propertyName;

/** 成员类型，如果非对象类型，则为空 */
@property (nonatomic, readonly) Class type;

- (instancetype)initWithIvar:(Ivar)ivar;


-(void)setValue:(id)value forObject:(id)object;

-(id)valueForObject:(id)object;
@end
